var requete = null;

function priorites(){
	creerRequete();
	requete.open("GET","alloy_example_output.xml",false);
	requete.send();
	xmlDoc=requete.responseXML;
	for (i=0;i<xmlDoc.getElementByTag('field')[0].length;i++){
		alert(xmlDoc.getElementByTag('field')[0].childNodes[i]);
	}
//	xmlDoc.getElementById('prio').innerHTML=reponseRequete;
}

function ouvrirXML() {
	try {
		requete = new XMLHttpRequest();
	} catch (essaimicrosoft) {
		try {
			requete = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (autremicrosoft) {
			try {
				requete = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (echec) {
				requete = null;
			}
		}
	}
	if (requete == null)
		alert("Impossible de créer l'objet requête!");
}
